package com.elong.qadev.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "HTTP_RUNAFTER", schema = "ti")
public class RunAfter {
	private int id;
	private int caseId;
	private String classPath;
	private String afterMethod;
	private String afterMethodArgs;

	@Override
	public String toString() {
		return "RunAfter [id=" + id + ", caseId=" + caseId + ", classPath="
				+ classPath + ", afterMethod=" + afterMethod
				+ ", afterMethodArgs=" + afterMethodArgs + "]";
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "CASEID", nullable = false, length = 50)
	public int getCaseId() {
		return caseId;
	}

	public void setCaseId(int caseId) {
		this.caseId = caseId;
	}
	@Column(name = "CLASSPATH", nullable = true, length = 100)
	public String getClassPath() {
		return classPath;
	}

	public void setClassPath(String classPath) {
		this.classPath = classPath;
	}
	@Column(name = "AFTERMETHOD", nullable = true, length = 100)
	public String getAfterMethod() {
		return afterMethod;
	}

	public void setAfterMethod(String afterMethod) {
		this.afterMethod = afterMethod;
	}
	@Column(name = "AFTERMETHODARGS", nullable = true, length = 100)
	public String getAfterMethodArgs() {
		return afterMethodArgs;
	}

	public void setAfterMethodArgs(String afterMethodArgs) {
		this.afterMethodArgs = afterMethodArgs;
	}

	public RunAfter(int id, int caseId, String classPath, String afterMethod,
			String afterMethodArgs) {
		super();
		this.id = id;
		this.caseId = caseId;
		this.classPath = classPath;
		this.afterMethod = afterMethod;
		this.afterMethodArgs = afterMethodArgs;
	}

	public RunAfter() {
		super();
		// TODO Auto-generated constructor stub
	}

}
